package com.qf.md.unit.service;

import com.qf.common.PageVO;
import com.qf.entity.md.unit.MdUnitMeasure;
import com.qf.md.unit.param.UnitSearchParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author zdl
 * @date 2025/2/27
 */
public interface MdUnitMeasureService {
    PageVO<MdUnitMeasure> queryUnitPage(UnitSearchParam unitSearchParam);

    Long delUnitByMeasureId(Long measureId);

    Long delBatchMeasureByIds(List<Long> ids);
    Long addMeasure(MdUnitMeasure mdUnitMeasure);

    List<MdUnitMeasure> queryAllPrimaryFlag();

    MdUnitMeasure findByPrimaryKey(Long measureId);

    Long updateMeasure(MdUnitMeasure mdUnitMeasure);

    Long uploadExcel(MultipartFile file);

    void downExcel(HttpServletResponse response);

    void myExcelDownload(HttpServletResponse response);
}
